<?
require_once('functions.php');

function GetSAddresses()
{
		$con = GetConnection();
		$db = mysql_select_db("eCommerce",$con);
        $sql = "SELECT * from ShippingAddress";
		return $results = mysql_query($sql,$con);
		
}
function GetSAddress($id)
{
        $con = GetConnection();
		$db = mysql_select_db("eCommerce",$con);
        $sql = "SELECT * FROM ShippingAddress WHERE id=$id";
        return $results = mysql_query($sql, $con);	
}  
function DeleteSAddresses($id)
{
        $con = GetConnection();
		$db = mysql_select_db("eCommerce",$con);
        mysql_query("DELETE FROM ShippingAddress WHERE id=$id");
        return $results = mysql_query($sql, $con);	
}     
?>